package ACWing.Greed;
//114. 国王游戏

import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;

/**
 * @author :chenjie
 * @date :Created 2023/1/16 15:12
 */
public class KINGGAME {
    static class Pall{
        int x;
        int y;
        public Pall(int x, int y) {
            this.x = x;
            this.y = y;
        }

        @Override
        public String toString() {
            return "Pall{" +
                    "x=" + x +
                    ", y=" + y +
                    '}';
        }
    }
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        int n=sc.nextInt();
        List<Pall> list=new ArrayList<>();
        int a=sc.nextInt();
        int b=sc.nextInt();
        for (int i = 0; i < n; i++) {
            list.add(new Pall(sc.nextInt(),sc.nextInt()));
        }
        list.sort(new Comparator<Pall>() {
            @Override
            public int compare(Pall o1, Pall o2) {
                return (o2.x+o2.y)-(o1.x+o1.y);
            }
        });
        list.add(new Pall(a,b));
        BigInteger bigInteger=new BigInteger("1");
        BigInteger bigInteger1=new BigInteger(String.valueOf(Integer.MIN_VALUE));
        for (int i = list.size()-1; i >= 0; i--) {
            if(bigInteger.divide(BigInteger.valueOf(list.get(i).y)).compareTo(bigInteger1)>0){
                bigInteger1=bigInteger.divide(BigInteger.valueOf(list.get(i).y));
            }
            bigInteger=bigInteger.multiply(BigInteger.valueOf(list.get(i).x));
        }
        System.out.println(bigInteger1);
    }
}
